/**
 * 
 */
package neptune.web.client.view.components.editor;

import neptune.web.client.model.topology.SerializableLink;
import neptune.web.client.model.topology.SerializableTopology;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.TreeItem;

/**
 * @author Roberto Bifulco [RobertoBifulco.it] [info@robertoBifulco.it]
 * 
 */
public class LinkPropsCommand implements Command {

	private SerializableLink link;
	private SerializableTopology topology;
	private TreeItem treeItem;
	private final TopologyEditor editor;

	public LinkPropsCommand(SerializableLink link,
			SerializableTopology topology, TreeItem treeItem, TopologyEditor editor) {
		super();
		this.link = link;
		this.topology = topology;
		this.treeItem = treeItem;
		this.editor = editor;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.google.gwt.user.client.Command#execute()
	 */
	public void execute() {
		LinkPropsDialog dialog = new LinkPropsDialog(link, topology, treeItem,editor);
		dialog.center();
	}

}
